#include "includes.h"


unsigned long int num;
extern volatile unsigned char input_timer;

int main(void){
	
	//unsigned char counter_buz;
	//DDRA = 0x02;
	//PORTA=0x00;
	DDRD &= 0xBF; // set icp as input
	PORTD |= 40;
	interrupt_init();
	TCNT1 = 0; // reset counter
	input_capture_init();
	lcd_init(LCD_DISP_ON_CURSOR_BLINK);
	//USART_init();
	
	//USART_Transmit_s("RS232 start");
	//buzzer_init();
    
	pwm_init();
	
	
	
	
	while(1){
	/*lcd_putc('0'+input_timer/100);
	lcd_putc('0'+input_timer/10);
	lcd_putc('0'+input_timer%10);
	*/
	disp_time();
	_delay_ms(50);
	lcd_clrscr();
	
    }
    return 0;
}
